/**
 * 文本链接 a
 */
//保证所有a标签都有href
$("a").each(function(){

	var aHref = this.href;
	if( aHref=="" || aHref==undefined ){
			$(this).attr("href","javascript:void(0)");
	}
	
	//给a标签加title
	var aTitle = this.title;
	var aText = this.text;
	
	if( aTitle=="" || aTitle==undefined ){
		if( aText!="" || aText!=undefined ){
			$(this).attr("title",$.trim(aText));
		}
	}
	
});

//select下的option添加title
$("option").each(function(){
	var oTitle = this.title;
	var oText = this.text;
	if( oTitle=="" || oTitle==undefined ){
		if( oText!="" || oText!=undefined ){
			$(this).attr("title",$.trim(oText));
		}
	}
});


if( $('#form_cds').length > 0 ){
	$('#form_cds #textfield').attr({'title':'输入搜索内容', 'placeholder':'输入搜索内容'});
	$('#form_cds #button').attr({'title':'搜索', 'placeholder':'搜索'});
}

//为目录页的翻页添加title
if( $(".CurrChnlCls").length > 0 ){
	$('.fenye #num').attr({'title':'页数', 'placeholder':'页数'});
	$('.fenye input[type="submit"]').attr({'title':'跳转按钮', 'placeholder':'跳转按钮'});
	
	$("#form1 #code").attr({placeholder:"请输入信件编号",title:"请输入信件编号"});
	$("#form1 .btn_xjbh1").attr({title:"查询"});
	$("#form1 .btn_xjbh2").attr({title:"重置"});
}
